using System;
using System.Collections.Generic;
using System.Text;
using CodePlex.Resourceful.Amazon.S3;
using System.IO;
using System.Diagnostics;
using System.Reflection;
using CodePlex.Resourceful.Amazon.S3.Test;
using System.Text.RegularExpressions;
using CodePlex.Resourceful.Amazon.S3.Actions;
using System.Net;
using CodePlex.Resourceful.Sun.CloudStorage;

namespace CodePlex.Resourceful.Examples
{
    public static class SunCloudStorageExample
    {

      
        public static void Run()
        {

            string aws = Environment.GetEnvironmentVariable("SUNSTORAGE");

            string accessKeyID = aws.Split(':')[0];
            string secretAccessKey = aws.Split(':')[1];

            
            SunCloudStorageClient client = new SunCloudStorageClient(accessKeyID, secretAccessKey);

            Tracer testTracer = new Tracer();
            testTracer.AddListener(Console.Out);
            client.Tracer.AddListener(testTracer);


            SunCloudStorageConnection cn = new SunCloudStorageConnection(client);

            cn.ListBuckets();
  


            
        }


       


    }
}
